{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "49f32986-3a44-47d7-bf37-306e8e41f7cd",
   "metadata": {},
   "outputs": [],
   "source": [
    "def SuckMyDick(luo):\n",
    "    y=luo**2\n",
    "    return y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "29530c0b-8da9-4554-8125-4160078dcbdc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2116"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "SuckMyDick(46)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "13d6ef10-6776-4057-a0ed-c007750155f4",
   "metadata": {
    "collapsed": true,
    "jupyter": {
     "outputs_hidden": true,
     "source_hidden": true
    },
    "tags": []
   },
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name '哈哈撒' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32mC:\\Users\\ADMINI~1\\AppData\\Local\\Temp/ipykernel_1776/458829192.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0m哈哈撒\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name '哈哈撒' is not defined"
     ]
    }
   ],
   "source": [
    "data = pro. query('stock_ basic', exchange=', list_ status='L', fields='ts_ code , symbol , name , are\n",
    "a, industry,list_ date')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "c223663b-d8b6-4755-88cd-ae64192b7490",
   "metadata": {},
   "outputs": [],
   "source": [
    "import tushare as ts\n",
    "import time\n",
    "def get_stock_basic1(token):\n",
    "    \n",
    "    pro=ts.pro_api(token)\n",
    "   \n",
    "    for _ in range(3):\n",
    "        try:\n",
    "            data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')\n",
    "        except:\n",
    "            print('pause')\n",
    "            time.sleep(1)\n",
    "        else:\n",
    "            return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "cb6d5122-36b6-45c1-b58c-a3623cd641c1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ts_code</th>\n",
       "      <th>symbol</th>\n",
       "      <th>name</th>\n",
       "      <th>area</th>\n",
       "      <th>industry</th>\n",
       "      <th>list_date</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>000001.SZ</td>\n",
       "      <td>000001</td>\n",
       "      <td>平安银行</td>\n",
       "      <td>深圳</td>\n",
       "      <td>银行</td>\n",
       "      <td>19910403</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>000002.SZ</td>\n",
       "      <td>000002</td>\n",
       "      <td>万科A</td>\n",
       "      <td>深圳</td>\n",
       "      <td>全国地产</td>\n",
       "      <td>19910129</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>000004.SZ</td>\n",
       "      <td>000004</td>\n",
       "      <td>国华网安</td>\n",
       "      <td>深圳</td>\n",
       "      <td>软件服务</td>\n",
       "      <td>19910114</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>000005.SZ</td>\n",
       "      <td>000005</td>\n",
       "      <td>ST星源</td>\n",
       "      <td>深圳</td>\n",
       "      <td>环境保护</td>\n",
       "      <td>19901210</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>000006.SZ</td>\n",
       "      <td>000006</td>\n",
       "      <td>深振业A</td>\n",
       "      <td>深圳</td>\n",
       "      <td>区域地产</td>\n",
       "      <td>19920427</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4453</th>\n",
       "      <td>688799.SH</td>\n",
       "      <td>688799</td>\n",
       "      <td>华纳药厂</td>\n",
       "      <td>湖南</td>\n",
       "      <td>化学制药</td>\n",
       "      <td>20210713</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4454</th>\n",
       "      <td>688800.SH</td>\n",
       "      <td>688800</td>\n",
       "      <td>瑞可达</td>\n",
       "      <td>江苏</td>\n",
       "      <td>元器件</td>\n",
       "      <td>20210722</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4455</th>\n",
       "      <td>688819.SH</td>\n",
       "      <td>688819</td>\n",
       "      <td>天能股份</td>\n",
       "      <td>浙江</td>\n",
       "      <td>电气设备</td>\n",
       "      <td>20210118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4456</th>\n",
       "      <td>688981.SH</td>\n",
       "      <td>688981</td>\n",
       "      <td>中芯国际</td>\n",
       "      <td>上海</td>\n",
       "      <td>半导体</td>\n",
       "      <td>20200716</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4457</th>\n",
       "      <td>689009.SH</td>\n",
       "      <td>689009</td>\n",
       "      <td>九号公司-WD</td>\n",
       "      <td>北京</td>\n",
       "      <td>摩托车</td>\n",
       "      <td>20201029</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>4458 rows × 6 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        ts_code  symbol     name area industry list_date\n",
       "0     000001.SZ  000001     平安银行   深圳       银行  19910403\n",
       "1     000002.SZ  000002      万科A   深圳     全国地产  19910129\n",
       "2     000004.SZ  000004     国华网安   深圳     软件服务  19910114\n",
       "3     000005.SZ  000005     ST星源   深圳     环境保护  19901210\n",
       "4     000006.SZ  000006     深振业A   深圳     区域地产  19920427\n",
       "...         ...     ...      ...  ...      ...       ...\n",
       "4453  688799.SH  688799     华纳药厂   湖南     化学制药  20210713\n",
       "4454  688800.SH  688800      瑞可达   江苏      元器件  20210722\n",
       "4455  688819.SH  688819     天能股份   浙江     电气设备  20210118\n",
       "4456  688981.SH  688981     中芯国际   上海      半导体  20200716\n",
       "4457  689009.SH  689009  九号公司-WD   北京      摩托车  20201029\n",
       "\n",
       "[4458 rows x 6 columns]"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_stock_basic1('eb13b3bfd2bd07fd9eb40234f19941c73f230e1e98cc212b8cd407c7')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "8eb40027-6cb3-4744-870a-9f4e99140fc6",
   "metadata": {},
   "outputs": [],
   "source": [
    "import tushare as ts\n",
    "import time\n",
    "def get_stock_basic2(token):\n",
    "    \n",
    "    pro=ts.pro_api(token)\n",
    "   \n",
    "    for _ in range(3):\n",
    "        try:\n",
    "            df = pro.daily(trade_date='20210906')\n",
    "        except:\n",
    "            print('pause')\n",
    "            time.sleep(1)\n",
    "        else:\n",
    "            return df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "d96a43b1-fce5-4515-b86e-4b92e47843d7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ts_code</th>\n",
       "      <th>trade_date</th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>close</th>\n",
       "      <th>pre_close</th>\n",
       "      <th>change</th>\n",
       "      <th>pct_chg</th>\n",
       "      <th>vol</th>\n",
       "      <th>amount</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>000001.SZ</td>\n",
       "      <td>20210906</td>\n",
       "      <td>17.93</td>\n",
       "      <td>18.60</td>\n",
       "      <td>17.78</td>\n",
       "      <td>18.45</td>\n",
       "      <td>18.04</td>\n",
       "      <td>0.41</td>\n",
       "      <td>2.2727</td>\n",
       "      <td>1515225.56</td>\n",
       "      <td>2780281.080</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>000002.SZ</td>\n",
       "      <td>20210906</td>\n",
       "      <td>20.77</td>\n",
       "      <td>21.05</td>\n",
       "      <td>20.42</td>\n",
       "      <td>20.55</td>\n",
       "      <td>20.93</td>\n",
       "      <td>-0.38</td>\n",
       "      <td>-1.8156</td>\n",
       "      <td>792302.48</td>\n",
       "      <td>1633927.073</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>000004.SZ</td>\n",
       "      <td>20210906</td>\n",
       "      <td>18.56</td>\n",
       "      <td>18.92</td>\n",
       "      <td>18.25</td>\n",
       "      <td>18.89</td>\n",
       "      <td>18.62</td>\n",
       "      <td>0.27</td>\n",
       "      <td>1.4501</td>\n",
       "      <td>29307.92</td>\n",
       "      <td>54670.417</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>000005.SZ</td>\n",
       "      <td>20210906</td>\n",
       "      <td>2.32</td>\n",
       "      <td>2.36</td>\n",
       "      <td>2.26</td>\n",
       "      <td>2.26</td>\n",
       "      <td>2.34</td>\n",
       "      <td>-0.08</td>\n",
       "      <td>-3.4188</td>\n",
       "      <td>196038.33</td>\n",
       "      <td>44846.817</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>000006.SZ</td>\n",
       "      <td>20210906</td>\n",
       "      <td>4.67</td>\n",
       "      <td>4.73</td>\n",
       "      <td>4.67</td>\n",
       "      <td>4.71</td>\n",
       "      <td>4.68</td>\n",
       "      <td>0.03</td>\n",
       "      <td>0.6410</td>\n",
       "      <td>85433.58</td>\n",
       "      <td>40139.349</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4445</th>\n",
       "      <td>688799.SH</td>\n",
       "      <td>20210906</td>\n",
       "      <td>39.97</td>\n",
       "      <td>41.30</td>\n",
       "      <td>39.97</td>\n",
       "      <td>40.50</td>\n",
       "      <td>39.92</td>\n",
       "      <td>0.58</td>\n",
       "      <td>1.4529</td>\n",
       "      <td>7899.33</td>\n",
       "      <td>32151.581</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4446</th>\n",
       "      <td>688800.SH</td>\n",
       "      <td>20210906</td>\n",
       "      <td>87.00</td>\n",
       "      <td>91.38</td>\n",
       "      <td>86.18</td>\n",
       "      <td>87.97</td>\n",
       "      <td>86.73</td>\n",
       "      <td>1.24</td>\n",
       "      <td>1.4297</td>\n",
       "      <td>7760.41</td>\n",
       "      <td>68278.511</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4447</th>\n",
       "      <td>688819.SH</td>\n",
       "      <td>20210906</td>\n",
       "      <td>47.95</td>\n",
       "      <td>48.29</td>\n",
       "      <td>47.10</td>\n",
       "      <td>48.26</td>\n",
       "      <td>47.30</td>\n",
       "      <td>0.96</td>\n",
       "      <td>2.0296</td>\n",
       "      <td>39412.57</td>\n",
       "      <td>188195.264</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4448</th>\n",
       "      <td>688981.SH</td>\n",
       "      <td>20210906</td>\n",
       "      <td>56.27</td>\n",
       "      <td>57.21</td>\n",
       "      <td>55.50</td>\n",
       "      <td>56.82</td>\n",
       "      <td>56.77</td>\n",
       "      <td>0.05</td>\n",
       "      <td>0.0881</td>\n",
       "      <td>318115.79</td>\n",
       "      <td>1798060.943</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4449</th>\n",
       "      <td>689009.SH</td>\n",
       "      <td>20210906</td>\n",
       "      <td>80.30</td>\n",
       "      <td>87.50</td>\n",
       "      <td>78.37</td>\n",
       "      <td>86.00</td>\n",
       "      <td>80.50</td>\n",
       "      <td>5.50</td>\n",
       "      <td>6.8323</td>\n",
       "      <td>21289.72</td>\n",
       "      <td>178908.582</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>4450 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        ts_code trade_date   open   high    low  close  pre_close  change  \\\n",
       "0     000001.SZ   20210906  17.93  18.60  17.78  18.45      18.04    0.41   \n",
       "1     000002.SZ   20210906  20.77  21.05  20.42  20.55      20.93   -0.38   \n",
       "2     000004.SZ   20210906  18.56  18.92  18.25  18.89      18.62    0.27   \n",
       "3     000005.SZ   20210906   2.32   2.36   2.26   2.26       2.34   -0.08   \n",
       "4     000006.SZ   20210906   4.67   4.73   4.67   4.71       4.68    0.03   \n",
       "...         ...        ...    ...    ...    ...    ...        ...     ...   \n",
       "4445  688799.SH   20210906  39.97  41.30  39.97  40.50      39.92    0.58   \n",
       "4446  688800.SH   20210906  87.00  91.38  86.18  87.97      86.73    1.24   \n",
       "4447  688819.SH   20210906  47.95  48.29  47.10  48.26      47.30    0.96   \n",
       "4448  688981.SH   20210906  56.27  57.21  55.50  56.82      56.77    0.05   \n",
       "4449  689009.SH   20210906  80.30  87.50  78.37  86.00      80.50    5.50   \n",
       "\n",
       "      pct_chg         vol       amount  \n",
       "0      2.2727  1515225.56  2780281.080  \n",
       "1     -1.8156   792302.48  1633927.073  \n",
       "2      1.4501    29307.92    54670.417  \n",
       "3     -3.4188   196038.33    44846.817  \n",
       "4      0.6410    85433.58    40139.349  \n",
       "...       ...         ...          ...  \n",
       "4445   1.4529     7899.33    32151.581  \n",
       "4446   1.4297     7760.41    68278.511  \n",
       "4447   2.0296    39412.57   188195.264  \n",
       "4448   0.0881   318115.79  1798060.943  \n",
       "4449   6.8323    21289.72   178908.582  \n",
       "\n",
       "[4450 rows x 11 columns]"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_stock_basic2('eb13b3bfd2bd07fd9eb40234f19941c73f230e1e98cc212b8cd407c7')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "6d8e7609-ce4a-4a81-a76b-feed89627377",
   "metadata": {},
   "outputs": [],
   "source": [
    "import tushare as ts\n",
    "import time\n",
    "def get_stock_basic3(token):\n",
    "    \n",
    "    pro=ts.pro_api(token)\n",
    "   \n",
    "    for _ in range(3):\n",
    "        try:\n",
    "            df = pro.query('daily', ts_code='002299.SZ', start_date='20180101', end_date='20180906')\n",
    "        except:\n",
    "            print('pause')\n",
    "            time.sleep(1)\n",
    "        else:\n",
    "            return df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7d6e44c2-8d59-4597-b854-4391bc50c31f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ts_code</th>\n",
       "      <th>trade_date</th>\n",
       "      <th>open</th>\n",
       "      <th>high</th>\n",
       "      <th>low</th>\n",
       "      <th>close</th>\n",
       "      <th>pre_close</th>\n",
       "      <th>change</th>\n",
       "      <th>pct_chg</th>\n",
       "      <th>vol</th>\n",
       "      <th>amount</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180906</td>\n",
       "      <td>17.92</td>\n",
       "      <td>18.42</td>\n",
       "      <td>17.75</td>\n",
       "      <td>17.87</td>\n",
       "      <td>18.12</td>\n",
       "      <td>-0.25</td>\n",
       "      <td>-1.3797</td>\n",
       "      <td>125503.36</td>\n",
       "      <td>225929.498</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180905</td>\n",
       "      <td>17.62</td>\n",
       "      <td>18.45</td>\n",
       "      <td>17.61</td>\n",
       "      <td>18.12</td>\n",
       "      <td>17.79</td>\n",
       "      <td>0.33</td>\n",
       "      <td>1.8550</td>\n",
       "      <td>168941.91</td>\n",
       "      <td>305868.235</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180904</td>\n",
       "      <td>17.80</td>\n",
       "      <td>18.02</td>\n",
       "      <td>17.50</td>\n",
       "      <td>17.79</td>\n",
       "      <td>17.53</td>\n",
       "      <td>0.26</td>\n",
       "      <td>1.4832</td>\n",
       "      <td>135603.48</td>\n",
       "      <td>241394.793</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180903</td>\n",
       "      <td>17.10</td>\n",
       "      <td>17.66</td>\n",
       "      <td>17.10</td>\n",
       "      <td>17.53</td>\n",
       "      <td>17.06</td>\n",
       "      <td>0.47</td>\n",
       "      <td>2.7550</td>\n",
       "      <td>115196.72</td>\n",
       "      <td>200374.261</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180831</td>\n",
       "      <td>17.29</td>\n",
       "      <td>17.52</td>\n",
       "      <td>16.90</td>\n",
       "      <td>17.06</td>\n",
       "      <td>17.35</td>\n",
       "      <td>-0.29</td>\n",
       "      <td>-1.6715</td>\n",
       "      <td>77584.84</td>\n",
       "      <td>133208.823</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>163</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180108</td>\n",
       "      <td>15.25</td>\n",
       "      <td>15.41</td>\n",
       "      <td>14.98</td>\n",
       "      <td>15.35</td>\n",
       "      <td>15.22</td>\n",
       "      <td>0.13</td>\n",
       "      <td>0.8500</td>\n",
       "      <td>132428.40</td>\n",
       "      <td>201312.131</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>164</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180105</td>\n",
       "      <td>14.62</td>\n",
       "      <td>15.23</td>\n",
       "      <td>14.60</td>\n",
       "      <td>15.22</td>\n",
       "      <td>14.56</td>\n",
       "      <td>0.66</td>\n",
       "      <td>4.5300</td>\n",
       "      <td>160431.83</td>\n",
       "      <td>240628.525</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180104</td>\n",
       "      <td>14.50</td>\n",
       "      <td>14.77</td>\n",
       "      <td>14.47</td>\n",
       "      <td>14.56</td>\n",
       "      <td>14.57</td>\n",
       "      <td>-0.01</td>\n",
       "      <td>-0.0700</td>\n",
       "      <td>67242.74</td>\n",
       "      <td>98347.820</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180103</td>\n",
       "      <td>14.45</td>\n",
       "      <td>14.72</td>\n",
       "      <td>14.38</td>\n",
       "      <td>14.57</td>\n",
       "      <td>14.47</td>\n",
       "      <td>0.10</td>\n",
       "      <td>0.6900</td>\n",
       "      <td>64624.78</td>\n",
       "      <td>94096.791</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>167</th>\n",
       "      <td>002299.SZ</td>\n",
       "      <td>20180102</td>\n",
       "      <td>14.42</td>\n",
       "      <td>14.53</td>\n",
       "      <td>14.27</td>\n",
       "      <td>14.47</td>\n",
       "      <td>14.40</td>\n",
       "      <td>0.07</td>\n",
       "      <td>0.4900</td>\n",
       "      <td>39044.21</td>\n",
       "      <td>56335.676</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>168 rows × 11 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       ts_code trade_date   open   high    low  close  pre_close  change  \\\n",
       "0    002299.SZ   20180906  17.92  18.42  17.75  17.87      18.12   -0.25   \n",
       "1    002299.SZ   20180905  17.62  18.45  17.61  18.12      17.79    0.33   \n",
       "2    002299.SZ   20180904  17.80  18.02  17.50  17.79      17.53    0.26   \n",
       "3    002299.SZ   20180903  17.10  17.66  17.10  17.53      17.06    0.47   \n",
       "4    002299.SZ   20180831  17.29  17.52  16.90  17.06      17.35   -0.29   \n",
       "..         ...        ...    ...    ...    ...    ...        ...     ...   \n",
       "163  002299.SZ   20180108  15.25  15.41  14.98  15.35      15.22    0.13   \n",
       "164  002299.SZ   20180105  14.62  15.23  14.60  15.22      14.56    0.66   \n",
       "165  002299.SZ   20180104  14.50  14.77  14.47  14.56      14.57   -0.01   \n",
       "166  002299.SZ   20180103  14.45  14.72  14.38  14.57      14.47    0.10   \n",
       "167  002299.SZ   20180102  14.42  14.53  14.27  14.47      14.40    0.07   \n",
       "\n",
       "     pct_chg        vol      amount  \n",
       "0    -1.3797  125503.36  225929.498  \n",
       "1     1.8550  168941.91  305868.235  \n",
       "2     1.4832  135603.48  241394.793  \n",
       "3     2.7550  115196.72  200374.261  \n",
       "4    -1.6715   77584.84  133208.823  \n",
       "..       ...        ...         ...  \n",
       "163   0.8500  132428.40  201312.131  \n",
       "164   4.5300  160431.83  240628.525  \n",
       "165  -0.0700   67242.74   98347.820  \n",
       "166   0.6900   64624.78   94096.791  \n",
       "167   0.4900   39044.21   56335.676  \n",
       "\n",
       "[168 rows x 11 columns]"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_stock_basic3('eb13b3bfd2bd07fd9eb40234f19941c73f230e1e98cc212b8cd407c7')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1e029b8a-0694-4199-a3a0-a8ad1c171b77",
   "metadata": {
    "tags": []
   },
   "source": [
    "### 吃大便"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7859c5cd-4cda-495a-86b6-b26833d89eec",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
